package nju.software.xkxt.service.model;

import nju.software.xkxt.data.dataobject.UserDO;

/**
 * @author typ
 * 
 */
public class UserModel {
	private Integer userId;
	private String name;
	private String schoolNo;
	private String pwd;
	private Integer sex;
	private Integer role;
	private String email;
	private String phone;

	public UserModel() {
	}

	public UserModel(UserDO userDO) {
		super();
		this.userId = userDO.getUserId();
		this.name = userDO.getName();
		this.schoolNo = userDO.getSchoolNo();
		this.pwd = userDO.getPwd();
		this.sex = userDO.getSex();
		this.role = userDO.getRole();
		this.email = userDO.getEmail();
		this.phone = userDO.getPhone();
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSchoolNo() {
		return schoolNo;
	}

	public void setSchoolNo(String schoolNo) {
		this.schoolNo = schoolNo;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

}
